const express = require('express')
const userCtrl = require('../controller/user')
const useValidator = require('../validator/user')
const router = express.Router()
router.post('/login', useValidator.login, userCtrl.login)
router.post('/user', useValidator.register, userCtrl.register)
router.get('/user', userCtrl.getUser)
module.exports = router